import './assets/main.css'
// 引用vue模块
//分别暴露的选择性引用
import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//默认暴露
import App from './App.vue'
import {router} from "@/router/router.ts"
import {createPinia} from "pinia";
//引用pinia持久化组件
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
//使用createApp函数将App这个组件挂载到id为app的div元素中
const app = createApp(App)
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
//挂zai
app.use(pinia)
app.use(createPinia())
app.use(ElementPlus)

app.use(router)
app.mount('#app')